package crp.infra.test.db;

import org.testcontainers.containers.Network;
import org.testcontainers.containers.PostgreSQLContainer;

public class PostgreSQLContainerProvider {
    private static PostgreSQLContainer<?> DB =
            new PostgreSQLContainer<>("postgres:14.1-alpine")
                    .withDatabaseName("crp_test")
                    .withNetworkAliases("crp_test")
                    .withReuse(true)
                    .withNetwork(Network.SHARED);

    public static PostgreSQLContainer<?> get() {
        return DB;
    }
}
